
import 'package:local_cache_sync/local_cache_sync.dart';

class LocalStorage {

  static void set<T>(String key, T t) {
    LocalCacheSync.userDefault.setWithKey<T>(key, t);
  }

  static T? getKey<T>(String key) {
    return LocalCacheSync.userDefault.getWithKey<T>(key);
  }

  static void clearAll() {
    LocalCacheSync.userDefault.clearAll();
  }

}

